<template>
  <h1>Movie</h1>
</template>

<script>
export default {
  name: "Movie",
  mounted() {
    console.log("Movie Mounted");
  },
  beforeDestroy() {
    console.log("Movie destroy");
  },
  // 被keep-alive 缓存的组件激活时调用
  activated() {
    console.log("Movie激活了");
  },
  // 被keep-alive 缓存的组件失活时调用
  deactivated() {
    console.log("Movie失活了");
  },
};
</script>

<style scoped></style>
